package net.zjitc.service;

import net.zjitc.common.Msg;
import net.zjitc.common.ServiceResponse;
import net.zjitc.pojo.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @Author admin
 * @Date 2019/4/30 11:06
 */
public interface UserService {
    void register(User user);

    Msg checkEmail(User user);

    Msg checkUsername(User user);

    User findByName(String username);


    ServiceResponse update(User user, HttpServletRequest request, HttpSession session);


    User findById(int username);
}
